package keeto.com.vn.classified.config;

/**
 * @author hector Created on 2012-5-9
 * 
 */
public interface AdBannerConfig {

	/**
	 * polling period is 30 minutes
	 */
	public static final int AD_BANNER_POLLING_PERIOD = 30 * 60 * 1000;

	public static final int COMMON_AD_BANNER_SWITCH_PERIOD = 10 * 1000;
	
	public static final int AD_BANNER_LOCAL_REFRESH_PERIOD = 5*60*1000;

	/**
	 * if the screen height is more than 600px, will show the Ad Banner when
	 * screen is landscape . else the Ad banner will be hide to improve the user
	 * experience.
	 */
	public static final int SHOW_BANNER_WHEN_SCREEN_WIDTH_REACHED_SIZE = 600;

	/**
	 *Buddy List	N(N > 0)	Android Client	0
	 *SNS Post List	N	Android Client	1
	 *Facebook Post List*	N	Android Client	2
	 *Twitter Post List*	N	Android Client	3
	 *Chat Session List	N	Android Client	4
	 *Chat Window	N	Android Client	5
	 *CLUB Home		Android Client	6
	 *CLUB Category List	N	Android Client	7
	 *CLUB Sub Category List	N	Android Client	8
	 *CLUB Item List	N	Android Client	9
	 *ALL	N	Android Client	-1
	 */

	public static final int PLACEID_BUDDY_LIST = 0;
	public static final int PLACEID_SNS_POST_LIST = 1;
	public static final int PLACEID_FACEBOOK_POST_LIST = 2;
	public static final int PLACEID_TWITTER_POST_LIST = 3;
	public static final int PLACEID_CHAT_SESSION_LIST = 4;
	public static final int PLACEID_CHAT_WINDOW = 5;
	public static final int PLACEID_CLUB_HOME= 6;
	public static final int PLACEID_CLUB_CATEGORY_LIST = 7;
	public static final int PLACEID_CLUB_SUB_CATEGORY_LIST = 8;
	public static final int PLACEID_CLUB_ITEM_LIST = 9;
	public static final int PLACEID_ALL = -1;
	// AD show level
	static final int AD_SHOW_LEVEL_HIGHEST = 5;
	static final int AD_SHOW_LEVEL_HIGHER = 4;
	static final int AD_SHOW_LEVEL_HIGH = 3;
	static final int AD_SHOW_LEVEL_NORMAL = 2;
	static final int AD_SHOW_LEVEL_LOW = 1;
	// AD type
	static final int AD_TYPE_SPLASH_SCREEN = 0;
	static final int AD_TYPE_BOTTOM = 1;
	static final int AD_TYPE_CLUB_HOME = 2;
	/**
	 * AD status 0: waiting for approve 1: approved 2: rejected
	 */
	static final int AD_STATUS_WAIT4APPROVE = 0;
	static final int AD_STATUS_APPROVED = 1;
	static final int AD_STATUS_REJECTED = 2;
	/**
	 * AD platform 0 Android, 1 J2ME,2 BB,3 Web,4 Wap
	 * */
	static final int AD_PLATFORM_ANDROID = 0;
	static final int AD_PLATFORM_J2ME = 1;
	static final int AD_PLATFORM_BB = 2;
	static final int AD_PLATFORM_WEB = 3;
	static final int AD_PLATFORM_WAP = 4;
	/**
	 * update impress status
	 * */
	static final int STATUS_UPDATE_TRACK_OK = 0;
	static final int STATUS_UPDATE_TRACK_DBERROR = 1;
	static final int STATUS_UPDATE_TRACK_NEED_MORE_TIME = 2;
	/**
	 * Track ad type
	 * */
	static final int TRACK_AD_IMPRESSION = 1;
	static final int TRACK_AD_REQUEST = 2;
	static final int TRACK_AD_CLICKED = 3;
	
	/**
	 * @category AD screen size
	 * */
	static final String AD_SCREEN_SIZE_SMALL = "1";
	static final String AD_SCREEN_SIZE_MEDIUM = "2";
	static final String AD_SCREEN_SIZE_LARGE = "3";
	static final String AD_SCREEN_SIZE_EXTRA_LARGE = "4";
	
	/*
	 * Ad size
	 */
	public static int AD_SMALL = 1;
	public static int AD_MEDIUM = 2;
	public static int AD_LARGE = 3;
	public static int AD_XLARGE = 4;
	
}
